package loc_enum

// 区域-路线牌状态
type locEgnRoadboardStatus int

var LocEgnRoadboardStatus locEgnRoadboardStatus

// 正常
func (c *locEgnRoadboardStatus) Normal() int {
	return 1
}

// 失效
func (c *locEgnRoadboardStatus) NoValid() int {
	return 2
}

func (c *locEgnRoadboardStatus) ToText(value int) string {
	switch value {

	case 1:
		return "正常"

	case 2:
		return "失效"

	}
	return ""
}

func (c *locEgnRoadboardStatus) ToValue(text string) int {
	switch text {

	case "正常":
		return 1

	case "失效":
		return 2

	}
	return 0
}
